package com.spzx.test1.t9;
/*
    并非全力
*/

import com.spzx.test1.t8.Lip;

public class Test1 {
    public static void main(String[] args) {
        Screen screen = new Screen();

        new Thread(()->{
        screen.writeContent(":上课上课");
        },"徐老师").start();



        for (int i = 0; i < 40; i++) {
            new Thread(() -> {
                Object o = screen.readContent();
                System.out.println(Thread.currentThread().getName() + "读到内容"+o);
            }, "同学小" + i).start();
        }
    }
}
